package cn.wolfcode;

import cn.wolfcode.domain.Student;
import cn.wolfcode.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class Many2Many {

    @Test
    public void testManytoMany() {
        SqlSession session = MyBatisUtil.openSession();
        Long id = 1L;
        Student student = session.selectOne("cn.wolfcode.mapper.StudentMapper.get", id);
        System.out.println(student);
    }

}
